/**
 * Created by shenyinlin on 2018/6/24.
 */


import {Sprite} from "../base/Sprite.js";
import {DataStore} from "../base/DataStore.js";
//背景
export class BackGround extends Sprite {


    constructor() {
        const image = Sprite.getImage('background');
        // console.log('backGround constructor .. image = '+ image)
        super(image,
            0, 0,
            image.width, image.height,
            0, 0,
            DataStore.getInstance().canvas.width, DataStore.getInstance().canvas.height);
    }
}